<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        (function(window){
            class Promise {
                constructor(excutor){

                }
                // 用来指定成功和失败的回调方法
                then(onResolved, onRejected){

                }
                //失败的回调函数
                static catch(onRejected){

                }
                //函数对象的静态方法
                static resolve(value){
                    
                }
                static reject(reason){
                    
                }
                static all(promises){
                    
                }
                static race(promises){
                    
                }
            }
            window.Promise = Promise
        })(window)
    </script>
</body>
</html>